package com.theaf.basemodule.common.vo;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @Author:songwenke
 * @Description:岗位
 * @Date:create in 17:08 2018/3/7
 * @Modified By:
 **/
@Api("岗位")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PositionVO implements Serializable {
    private Long id;
    @ApiModelProperty("机构类型")
    private String orgType;
    @ApiModelProperty("名称")
    @NotNull(message = "名称不能为空")
    @Length(min=1, max=32 , message = "名称范围为{min}-{max}位")
    private String name;
    @ApiModelProperty("备注")
    private String remark;
    @ApiModelProperty("权限")
    private List<Long> auths;
}
